package com.hospital.BaseActivity;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.widget.RadioGroup;
import com.hospital.activity.R;
import com.hospital.adapter.FragmentTabAdapter;
import com.hospital.view.TabManager.ManagerTab01Fragment;
import com.hospital.view.TabManager.ManagerTab02Fragment;
import com.hospital.view.TabManager.ManagerTab03Fragment;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by wangjun on 2015/6/10.
 */
public class FrameManagerActivity  extends FragmentActivity implements View.OnClickListener {

    private RadioGroup mTabs;
    private List<Fragment> mFragmentList = new ArrayList<Fragment>();
    private FragmentTabAdapter mFragmentTabAdapter;
    private String falg = "0";
    private String type = "2";

    @Override
    public void onClick(View v) {
        // TODO Auto-generated method stub
        switch (v.getId()) {

        }
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setContentView(R.layout.manger_tab);

        initTab();
       // head.getTitleBtn().setOnClickListener(this);
    }

    private void initTab() {
        mFragmentList.add(new ManagerTab01Fragment());
        mFragmentList.add(new ManagerTab02Fragment());
        mFragmentList.add(new ManagerTab03Fragment());
        mTabs = (RadioGroup) findViewById(R.id.manager_job_tabs);

        mFragmentTabAdapter = new FragmentTabAdapter(this, mFragmentList, R.id.tab_content, mTabs);

    }
}

